import h from './mysnabbdom/h'
import patch from "./mysnabbdom/patch";

const btn = document.getElementById('btn')
const container = document.getElementById("container");
var myVode1 = h('section',{},[
  h('p',{key: 'A'},'A'),
  h('p',{key: 'B'},'B'),
  h('p',{key: 'C'},'C'),
])
// var myVode2 = h('section',{},'你好')
patch(container,myVode1);
var myVode2 = h('section',{},[
  h('p',{key: 'A'},'A'),
  h('p',{key: 'B'},'B'),
  h('p',{key: 'M'},'M'),
  h('p',{key: 'N'},'N'),
  h('p',{key: 'C'},'C'),
])
btn.onclick = function () {
  patch(myVode1,myVode2);
}